<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//登录相关
Route::get('/login', '\App\Http\Controllers\LoginController@index');
Route::post('/login', '\App\Http\Controllers\LoginController@login');

//注册相关
Route::get('/register', '\App\Http\Controllers\RegisterController@index');
Route::post('/register', '\App\Http\Controllers\RegisterController@register');


//抽屉相关
Route::get('/drawer', '\App\Http\Controllers\DrawerController@index');
Route::get('/drawer/{drawer}', '\App\Http\Controllers\DrawerController@show');

Route::get('/drawer/add', '\App\Http\Controllers\DrawerController@add');